package classes.Commands
{
	import components.editor.c_baseElement;
	
	import flash.geom.Matrix3D;
	
	public class c_applyMatrix3D extends c_baseCommand {
		private var _matrix		: Matrix3D;
		private var _prevMatrix	: Matrix3D;
		public function c_applyMatrix3D(a_element:c_baseElement, matrix: Matrix3D, prevMatrix: Matrix3D) {
			super(a_element);
			_matrix = matrix;
			_prevMatrix = prevMatrix;
		}
		
		override public function Execute():void {
			element.transform.matrix3D = _matrix;
		}
		
		override public function unExecute():void {
			element.transform.matrix3D = _prevMatrix;
		}		
	}
}